namespace SolidMvvm {
	using System;

	public class ConstructorException : ExceptionBase {
		public ConstructorException(Type constructingClassType, Exception constructorException, Exception disposingExceptionOrNull) : base("'" + constructingClassType + "' did not initialize successfully:\n" + constructorException.Message + (disposingExceptionOrNull == null ? string.Empty : "\nThere was also a clean-up problem: " + disposingExceptionOrNull.Message), "Constructor exception: " + constructorException + (disposingExceptionOrNull == null ? string.Empty : "\nClean-up exception: " + disposingExceptionOrNull)) {}
	}
}
